package cn.sofwin.day0127.homework.Phone;

public class CommonHandSet extends HandSet implements PlayWiring{

    public CommonHandSet(String brand, String type) {
        super(brand, type);
    }

    @Override
    public void sendInfo() {
        System.out.println("发送文字信息...");
    }

    @Override
    public void call() {
        System.out.println("开始语音通话...");
    }

    @Override
    public void play(String content) {
        System.out.println("开始播放音乐《热雪》...");
    }

    @Override
    public void info(){
        System.out.println("这是一款型号为" + super.getType() + "的" + super.getBrand() + "手机：");
        play("《热雪》");
        sendInfo();
        call();
    }
}
